#include "QuadTree.h"

CQuadTree::CQuadTree(RECT map)
{
	this->_Root = new CNode(map);
}

CQuadTree::~CQuadTree()
{

}

void CQuadTree::Insert(CObjects *obj)
{
	this->_Root->Insert(obj);
}

void CQuadTree::GetObjectInScreen(list<CObjects*> *_list, RECT Screen)
{
	this->_Root->GetObjectInScreen(_list,Screen);
}

//void CQuadTree::GetListOfList(list<list<CObjects*>*> *BigList)
//{
//	this->_Root->GetListOfList(BigList);
//}

void CQuadTree::DrawGame(list<CObjects*> *_list, RECT Screen)
{
	this->_Root->DrawGame(_list,Screen);
}

void CQuadTree::Move(RECT Screen)
{
	this->_Root->Move(Screen,_Root);
}